#!/usr/bin/env python 
# -*- coding:utf-8 -*-
from flask import Blueprint, request
from app.services import m

service = Blueprint('service', __name__, url_prefix='/service')


@service.route('/timeto')
def timeto():
    try:
        timestamp = int(request.args.get('timestamp', 0))
    except Exception as err:
        return m.error('参数错误')
    return timestamp
